home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / clang / asyam.zip / FIFO.C < prev    next >
C/C++ Source or Header  |  1993-06-24  |  432b  |  22 lines

  1. #include <dos.h>
  2.  
  3. #include "async.h"
  4.  
  5. extern  int fifo_enabled;
  6. extern  int UART_ports[];
  7. extern  struct async_portS async_port[4];
  8.  
  9. // NEEDS WORK
  10.  
  11. int     init_fifo(int comport, int enable)
  12. {
  13.     if ((!async_port[comport].port_open) || (async_port[comport].uart_type != UART_16550A)) {
  14.         return (0);
  15.     }
  16.  
  17.     fifo_enabled = enable;
  18.     outportb(UART_ports[comport]+2, (enable?1:0));
  19.  
  20.     return (1);
  21. }
  22.